package com.xyh.service;

import com.xyh.pojo.Blog;
import com.xyh.pojo.PageRequest;
import com.xyh.pojo.PageResult;
import com.xyh.vo.BlogQuery;

import java.util.List;
import java.util.Map;

public interface BlogService extends BaseService<Blog>{

    Blog getBlog(Long id);

    PageResult getPage(PageRequest pageRequest);

    PageResult getPageByCondition(PageRequest pageQuery, BlogQuery blog);

    List<Blog> getRecommendBlogsTop(int size);

    PageResult getPageSearch(PageRequest pageRequest, String query);

    Blog getAndConvert(Long id);

    PageResult getPageByTagId(PageRequest pageRequest, Long tagId);

    Map<String, List<Blog>> archivesBlog();

    Integer count();
}
